package com.xunce.lkltest;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.annotation.Nullable;
import android.util.Log;

import com.xunce.aidl.IMyAidlInterface;

/**
 * Created by spoplar on 17-8-16.
 */
public class IMyAidlService extends Service {

    private  IBinder iBinder = new IMyAidlInterface.Stub(){

        @Override
        public int add(int arg1, int arg2) throws RemoteException {
            Log.d("Tag","收到了远程的请求，输入参数是："+arg1+"和"+arg2);
            return arg1+arg2;
        }
    };

    @Override
    public IBinder onBind(Intent intent) {
        return iBinder;
    }
}
